
package com.tools.cleanmaster.utils;

import android.content.Context;

import com.tools.cleanmaster.store.GlobalConfigSharedPrefManager;

import java.util.Locale;

public class LanguageHelper {

    public static boolean isPersonalSetted(Context ct) {
        return GlobalConfigSharedPrefManager.isPersonalLanguage(ct);
    }

    public static Locale getLocale(Context ct) {
        if (isPersonalSetted(ct)) {
            return Locale.ENGLISH;
        }
        return ct.getResources().getConfiguration().locale;
    }

}
